package com.ycxy.school.express.mapper;

import com.ycxy.school.express.pojo.entity.Payment;
import org.springframework.stereotype.Repository;

/**
 * @Author jayLuo
 * @Date 2023/1/8 17:30
 * @PackageName:com.ycxy.school.express.mapper
 * @ClassName: PaymentMapper
 * @Description: TODO
 * @Version 1.0
 */
@Repository
public interface PaymentMapper {

    /**
     * 插入订单支付数据
     *
     * @param payment 订单支付表实体类
     * @return
     */
    int insert(Payment payment);

    /**
     * 根据订单号更新支付数据
     *
     * @param payment 更新支付数据
     * @return
     */
    int updateBySn(Payment payment);

}
